package com.biz.primus.ms.commodity.dao.po;


import com.biz.primus.ms.base.jpa.po.BaseEntity;
import lombok.Data;

import javax.persistence.*;
import java.util.List;

/**
 * 省下门店商品的排序
 * 
 * @author Nian.Li
 * <br>2016年9月10日
 */
@Data
@Entity
@Table(name = "pro_product_depot_sort")
public class DepotProductSort extends BaseEntity {
  
    /**
	 * 
	 */
	private static final long serialVersionUID = 7152828951207316656L;
	
	/**
     * 省
     */
	@Column(nullable = false, unique = true)
	private Integer provinceId;
	/**
	 * 该省下排序的商品
	 */
    @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, mappedBy = "depotProductSort")
    private List<DepotProductSortItem> depotProductSortItems;
    
}
